package star.cloud.asme.system.group;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Transient;
import lombok.*;
import star.cloud.asme.base.mybatis.IBaseEntity;
import star.cloud.asme.system.user.User;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Entity(name = "senpec_system_group")
@TableName("senpec_system_group")
public class Group extends IBaseEntity<Group> {
    @Column(length = 20)
    private String name;
    private String description;
    @Transient
    @TableField(exist = false)
    private List<User> users;
}